<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<h2>我是服务器：${pageContext.request.localPort}</h2>
<h2>当前sessionId：${pageContext.session.id}</h2>
<h2>当前sessionId：${pageContext.request.contextPath}</h2>
<br>
<br>
<br>
<form action="${pageContext.request.contextPath}/tologin" method="post">
    用户名：<input type="text" name="username" value="admin"><br>
    密码:
    <input type="password" name="password" value="admin"><br>
    <input type="submit" value="登录">
</form>

</body>
</html>